package com.movie.modules.jf.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.movie.common.utils.PageUtils;
import com.movie.common.utils.Query;

import com.movie.modules.jf.dao.RelationDao;
import com.movie.modules.jf.entity.RelationEntity;
import com.movie.modules.jf.service.RelationService;
import org.springframework.transaction.annotation.Transactional;


@Service("relationService")
@Transactional
public class RelationServiceImpl extends ServiceImpl<RelationDao, RelationEntity> implements RelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RelationEntity> page = this.page(
                new Query<RelationEntity>().getPage(params),
                new QueryWrapper<RelationEntity>()
        );

        return new PageUtils(page);
    }

}